namespace B.Z.Inventory.API.Read.DTO
{
    /// <summary>
    /// 出入库排名统计DTO
    /// </summary>
    public class InOutboundRankingDto
    {
        /// <summary>
        /// 统计类型描述
        /// </summary>
        public string StatisticsType { get; set; }
        
        /// <summary>
        /// 统计开始时间
        /// </summary>
        public DateTime? StartDate { get; set; }
        
        /// <summary>
        /// 统计结束时间
        /// </summary>
        public DateTime? EndDate { get; set; }
        
        /// <summary>
        /// 排名列表
        /// </summary>
        public List<GoodsInOutRanking> Rankings { get; set; } = new List<GoodsInOutRanking>();
    }
    
    /// <summary>
    /// 商品出入库排名信息
    /// </summary>
    public class GoodsInOutRanking
    {
        /// <summary>
        /// 排名
        /// </summary>
        public int Rank { get; set; }
        
        /// <summary>
        /// 商品ID
        /// </summary>
        public int GoodsId { get; set; }
        
        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }
        
        /// <summary>
        /// 商品编号
        /// </summary>
        public string GoodsNumber { get; set; }
        
        /// <summary>
        /// 总数量
        /// </summary>
        public int TotalQuantity { get; set; }
        
        /// <summary>
        /// 操作次数
        /// </summary>
        public int OperationCount { get; set; }
        
        /// <summary>
        /// 是否入库排名（true：入库，false：出库）
        /// </summary>
        public bool IsInbound { get; set; }
    }
}